<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>重置密码</title>
<script  type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-3.1.1.min.js"></script>
</head>
<body>
	<form id="form" method="post" >
	<input type="hidden" name="mobile" value="${mobile }"/>
	<input type="hidden" name="account" value="${account }"/>
		请输入新密码<input type="text" name="password" id="pass"/>
		<input type="button" value="确定修改" onclick="updatepassword()"/>
	</form>
</body>

<script>
	function updatepassword(){
			$.ajax({
				type:"post",
				url:"${pageContext.request.contextPath }/proltal/zn1/updatePassword",
				data:$("#form").serialize(),
				success:function(msg){
					if(msg.status!=0){
						alert(msg.msg);
						return;
					}
					alert(msg.msg);
					location.href="${pageContext.request.contextPath }/proltal/zn1/resetpasswordsuccess";
				}
			});
		
	}
</script>

</html>